﻿using System.Collections.ObjectModel;

namespace ServerCrafter.ClassLibrary.ViewModels
{
    public sealed class InstalledMod
    {
        public string Name { get; set; }
    }

    public class VMInstalledMods
    {
        public ObservableCollection<InstalledMod> Get()
        {
            var installedMods = new ObservableCollection<InstalledMod>();

            for (var i = 0; i < ModManager.InstalledMods.Count; i++)
            {
                var installedMod = new InstalledMod()
                    {
                        Name = ModManager.InstalledMods.List[i]
                    };
                installedMods.Add(installedMod);
            }
            return installedMods;
        }
    }
}